import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import { Message,MessageBox } from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

import '@/icons'
import './permission'

import auth from '@/directive'


import * as filters from '@/utils/filters.js';

Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key]);
});

Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm

Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(auth)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
